package com.drug.service;

import com.drug.domain.DrugAtegory;
import com.drug.domain.Result;

import java.util.Map;

public interface DrugAtegoryService {

    /**
     * 药品品目添加
     * @param drugAtegory
     * @return
     */
    int addDrugAtegory(Map drugAtegory);

    /**
     * 添加商品名
     * @param
     * @return
     */
    int insertDrugAtegoryName(DrugAtegory drugAtegory);



    //修改商品名
    int updateDrugAtegorydaName(DrugAtegory drugAtegory);


    /**
     * 根据id回显
     */
    /**
     * 根据id回显
     */
    Result selectDaById(Integer daId);

    /**
     * 根据名字查询id
     * @param
     * @return
     */
    int selectidbyname(DrugAtegory drugAtegory);

    /**
     * 查询商品名是否已存在
     */
    Result daName(String daName);
}
